package o;

import android.text.TextUtils;
import androidx.annotation.NonNull;
import com.huawei.appgallery.updatemanager.impl.ignore.dao.IgnoreInfo;
import java.util.ArrayList;
import java.util.List;

public class dan {
    private static final Object ˎ = new Object();
    private static dan ॱ = null;
    private cfu ˊ = euc.ˊ().ʽ("updateapps");

    public static dan ˏ() {
        dan o_dan;
        synchronized (ˎ) {
            if (ॱ == null) {
                ॱ = new dan();
            }
            o_dan = ॱ;
        }
        return o_dan;
    }

    public List<String> ˋ() {
        List<String> arrayList = new ArrayList();
        for (IgnoreInfo ignoreInfo : this.ˊ.ˋ(IgnoreInfo.class, "state=?", new String[]{"2"}, null, null)) {
            if (!TextUtils.isEmpty(ignoreInfo.ˎ())) {
                arrayList.add(ignoreInfo.ˎ());
            }
        }
        return arrayList;
    }

    public void ˎ(@NonNull String str) {
        this.ˊ.ˋ("packageName=?", new String[]{str});
        cfr ignoreInfo = new IgnoreInfo();
        ignoreInfo.ˋ(str);
        ignoreInfo.ˎ(2);
        this.ˊ.ˎ(ignoreInfo);
    }

    public void ˎ() {
        this.ˊ.ˋ(null, null);
    }

    public void ˋ(@NonNull String str) {
        this.ˊ.ˋ("packageName=?", new String[]{str});
    }
}
